package com.core.exception;

public class AbstractException extends Exception {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 3870528539686445044L;
	private ErrorInfo info;
    public AbstractException(ErrorInfo message) {
      super(message.getErrorInfo());
      info = message;
    }
    public String getCode()
    {
      return info.getErrorCode();
    }

}
